<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
    <meta name="format-detection" content="telephone=no">
    <title>FrozenUI Demo</title>
    <link rel="stylesheet" href="../css/frozen.css">
    <link rel="stylesheet" href="../css/font-awesome.css"/>
    <style>
        .my-avatar{
            width: 35px;
            height: 35px;
            margin-top: 5px;
        }
        .my-reddot{
            position: relative;
        }
        .my-nav{
            width: 40%;
            height: 30px;
            background-color: #16b6f6;
            line-height: 30px;
            margin: auto;
            margin-top: 7px;
            border: 1px solid white;
        }
        .my-nav  .active{
            background-color: #ffffff;

        }
        .qq-blue-c{
            color: #18b4ed;
        }
        .qq-blue-b{
            background-color: #18b4ed;
        }
        .ui-tiled i{
            line-height:0.8;
        }
        .my-menu-box{
            color: #464646;
            font-size: 0.1rem;
        }
        .ui-tiled .active{
            color: #18b4ed;
        }
        .ui-tiled .active >i{
            color: #18b4ed;
        }
        .my-scroller{
            position: absolute;
            left: 0;
            right: 0;
            bottom: 56px;
            top: 45px;
            margin: auto;
        }
        .ui-badge-num{
            margin-top: 32px;
        }
        ul>li>div>h5{
            color: #858585;
        }
        a{
            text-decoration:none;
            color:#464646 ;
        }
        .my-loading{
            position: relative;
            width: 100%;
            z-index: 10000;
        }
        .my-loading-ul{
            height: 50px;

        }
    </style>
</head>
<body>
<!--头部-->
<header class="ui-header ui-header-positive ui-border-b ">
    <div class="ui-row-flex">
        <div class="ui-col ">
            <div  class="my-reddot ">
                <div class="ui-avatar-s  my-avater">
                    <span style="background-image:url(http://b-ssl.duitang.com/uploads/item/201508/11/20150811233725_VKGr2.jpeg)"></span>
                </div>
            </div>
        </div>
        <div class="ui-col ui-col-4">

            <ul class="ui-tiled  my-nav">
                <li class="active" ><div>消息</div></li>
                <li><div>电话</div></li>
            </ul>

        </div>
        <div class="ui-col ">
            <i class="ui-icon-add qq-blue-c"></i>
        </div>
    </div>
</header>
<!--脚部-->
<footer class="ui-footer ui-footer-btn ui-btn-group ui-footer-stable">
    <footer class="ui-footer ui-footer-stable ui-border-t">
        <ul class="ui-tiled  my-menu-box">
            <li ><i class="fa fa-2-5x fa-comment-o" style="font-size: 2.5em;"></i><div class="my-menu">消息</div></li>
            <li class="active"><i class="ui-icon-personal"></i><div class="my-menu"><a href="qqlunbo.html">联系人</a></div></li>
            <li ><i class="fa fa-2-5x fa-star-o" style="font-size: 2.5em;"></i><div class="my-menu"><a href="qq.html">动态</a></div></li>
        </ul>
    </footer>
</footer>
<!--中间-->
<section class="ui-container">
    <div class="my-loading" style="display: none;height: 50px;">
        <div class="ui-loading-wrap">
            <p>正在加载中...</p>
            <i class="ui-loading"></i>
        </div>
    </div>




    <div class="ui-selector-content my-scroller ui-scroller" style="display:block">
        <ul class="ui-list ui-border-b">
            <li style="margin-left: 0">
                <div class="ui-searchbar-wrap ui-border-b" style="width: 100%">
                    <div class="ui-searchbar ui-border-radius">
                        <i class="ui-icon-search"></i>
                        <div class="ui-searchbar-text">搜索号码（2-10位）</div>
                        <div class="ui-searchbar-input"><input value="" type="tel" placeholder="搜索号码（2-10位）" autocapitalize="off"></div>
                        <i class="ui-icon-close"></i>
                    </div>
                    <button class="ui-searchbar-cancel">取消</button>
                </div>
            </li>

            <li>
                <div class="ui-avatar-s">
                    <span style="background-image:url(../img/1.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t ">
                    <h4 class="ui-nowrap">飞翔的企鹅</h4>
                    <h5 class="ui-nowrap">我失忆了，你要教我吃饭哦我失忆了，你要教我吃饭哦我失忆了，你要教我吃饭哦</h5>
                </div>
                <div class="ui-badge-num">123</div>

            </li>
            <li>
                <div class="ui-avatar-s">
                    <span style="background-image:url(../img/3.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t">
                    <h4 class="ui-nowrap">飞翔的雁鹅</h4>
                    <h5 class="ui-nowrap">我失忆了，你要教我打豆豆哦</h5>
                </div>
                <div class="ui-badge-num">new</div>

            </li>
            <li>
                <div class="ui-avatar-s">
                    <span style="background-image:url(../img/1.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t">
                    <h4 class="ui-nowrap">飞翔的天鹅</h4>
                    <h5 class="ui-nowrap">简单之美是透着一种禅意，如天上轻盈的白云，随缘自在；</h5>
                </div>
                <div class="ui-badge-num">new</div>
            </li>
            <li>
                <div class="ui-avatar-s">
                    <span style="background-image:url(../img/3.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t">
                    <h4 class="ui-nowrap">飞翔的狮头鹅</h4>
                    <h5 class="ui-nowrap">如花中纯白，清新淡雅；如冬雪初落，纯洁通透；</h5>
                </div>
                <div class="ui-badge-num">99</div>
            </li>
            <li>
                <div class="ui-avatar-s">
                    <span style="background-image:url(../img/1.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t">
                    <h4 class="ui-nowrap">飞翔的家鹅</h4>
                    <h5 class="ui-nowrap">如画中留白，给人以想象。简单，纯粹而通透，天然而不加雕琢。</h5>
                </div>
                <div class="ui-badge-num">new</div>
            </li>
            <li>
                <div class="ui-avatar-s">
                    <span style="background-image:url(../img/3.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t">
                    <h4>飞翔的企鹅</h4>
                </div>
            </li>
            <li>
                <div class="ui-avatar-s">
                    <span style="background-image:url(../img/1.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t"><h4>飞翔的企鹅</h4></div>
            </li>
            <li>
                <div class="ui-avatar-s">
                    <span style="background-image:url(../img/1.png"></span>
                </div>
                <div class="ui-list-info ui-border-t"><h4>飞翔的企鹅</h4></div>
            </li>
            <li>
                <div class="ui-avatar-s">
                    <span style="background-image:url(../img/1.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t"><h4>飞翔的企鹅</h4></div>
            </li>
            <li>
                <div class="ui-avatar-s">
                    <span style="background-image:url(../img/1.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t"><h4>飞翔的企鹅</h4></div>
            </li>
            <li>
                <div class="ui-avatar-s">
                    <span style="background-image:url(../img/1.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t"><h4>飞翔的企鹅</h4></div>
            </li>
            <li>
                <div class="ui-avatar-s">
                    <span style="background-image:url(../img/1.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t"><h4>飞翔的企鹅</h4></div>
            </li>
            <li>
                <div class="ui-avatar-s">
                    <span style="background-image:url(../img/1.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t"><h4>飞翔的企鹅</h4></div>
            </li>
            <li>
                <div class="ui-avatar-s">
                    <span style="background-image:url(../img/1.png)"></span>
                </div>
                <div class="ui-list-info ui-border-t"><h4>飞翔的企鹅</h4></div>
            </li>


        </ul>
    </div>

</section>



<script src="../lib/zepto.min.js"></script>
<script src="../js/frozen.js"></script>
<script type="text/javascript">
    $(function(){
        var scroll = new fz.Scroll('.ui-scroller', {
            scrollY: true,
            bounce:true
        });

        $(".ui-scroller")[0].ontouchend=function() {
            var s = scroll.getComputedPosition();
            scroll.refresh();
            console.log(s);
            if(s.y>2){
                $(".my-loading").show();
                $(".my-loading-ul").show();
                setTimeout(function(){
                    $(".my-loading-ul").hide();;
                    $(".my-loading").hide();
                },1000);
            }
        }

        console.log(scroll);
//    scrollTo(20)

        $('.my-nav > li').on("tap",function(){
            $('.my-nav > li').removeClass('active');
            $(this).addClass('active');
        });
        $('.my-menu-box > li').on("tap",function(){
            $('.my-menu-box > li').removeClass('active');
            $(this).addClass('active');
        });

//搜索框
        $('.ui-searchbar').tap(function(){
            $('.ui-searchbar-wrap').addClass('focus');
            $('.ui-searchbar-input input').focus();
        });
        $('.ui-searchbar-cancel').tap(function(){
            $('.ui-searchbar-wrap').removeClass('focus');
        });



    });
</script>
</body>
</html>